﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///UrlGet 的摘要说明
/// </summary>
public class UrlGet
{
    public static T GetObject<T>(string url)
    {
        CMSClient.Client client = new CMSClient.Client();
        return Newtonsoft.Json.JsonConvert.DeserializeObject<T>(client.GetClientBySocket(url));
    }

    public static string GetObject(string url)
    {
        CMSClient.Client client = new CMSClient.Client();
        return client.GetClientBySocket(url);
    }
}